package com.kehutong.wwin.service.util;

import com.kehutong.common.urlconfig.WebUrlConfig;
import org.coraframework.inject.Inject;
import org.coraframework.inject.Singleton;

@Singleton
public class URLConstant {
    @Inject
    private WebUrlConfig webUrlConfig;

    /**
     *  投诉报修模板消息的详情url
     *
     * @param id
     * @return
     */
    public String getWorkRepireUrl(String id) {
        return  webUrlConfig.getUrl("/weixin?page=repair/detailsWait&", "id", id);
    }

    /**
     *  企微分享小程序开门url
     *
     * @param id
     * @return
     */
    public String getMiniprogramUrl(String id) {
        return  webUrlConfig.getUrl("/weixin?page=repair/detailsWait&", "id", id);
    }
}
